package com.cwits.wifi.ui.view;


import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.TextView;

import com.cwits.wifi.R;


/**
 * Created by ZhangHua on 16-03-01.
 */
public class WaitDialog extends Dialog implements OnClickListener{
	private TextView mMsg_TextView;
	private String mMsg = "";
	
	public WaitDialog(Context context, boolean cancelable,
			OnCancelListener cancelListener) {
		super(context, cancelable, cancelListener);
		// TODO Auto-generated constructor stub
		mMsg = "";
	}

	public WaitDialog(Context context, int theme) {
		super(context, theme);
		// TODO Auto-generated constructor stub
		mMsg = "";
	}

	public WaitDialog(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		mMsg = "";
	}

	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       requestWindowFeature(Window.FEATURE_NO_TITLE);
       this.setContentView(R.layout.dialog_wait);
       init();
    }
	
	//实例化sosDialog中的控件
		private void init(){
			mMsg_TextView = (TextView)findViewById(R.id.wait_text_view);
			mMsg_TextView.setText(mMsg);
		}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub

			switch(v.getId()) {
		}
		
	}
	public void setMgs(String mgs)
	{
		mMsg = mgs;
	}
	
	
}
